package StudyCode.summary.mycollection;

import java.util.HashSet;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class GetUnionOfTwoHashSet {
	public static <T> HashSet<T> getUnion(HashSet<T> set1, HashSet<T> set2) {
		HashSet<T> set = new HashSet<T>();

		set.addAll(set1);
		set.addAll(set2);
		return set;
	}
}
